<template>
  <CaseManage />
</template>

<script>
import CaseManage from "@/components/CaseManage";

export default {
  name: "CaseNoAuditor",
  components: {
    CaseManage
  },
  created() {
    const info = JSON.parse(localStorage.getItem("user"));
    const permissions = info.permissions.filter(item => Number(item.menuId) === 16).map(item => item.path);
    let permissionIsShow = {
      caseReject: permissions.includes('caseNoAuditor-reject'),
      casePass: permissions.includes('caseNoAuditor-pass'),
      documentEdit: permissions.includes('caseNoAuditor-document-edit'),
      documentPass: permissions.includes('caseNoAuditor-document-pass'),
    }
    sessionStorage.setItem('caseLog', JSON.stringify({
      id: '3',   // process
      name: 'CaseNoAuditor',  // 页面名称
      menu: '部门内审',  // 页面大标题
      title: '法律待审核',  // 页面标题
      templateStatus: ['2'], //当前页未通过文书的状态码
      passTemplateStatus: '3', //通过文书应该修改的状态码
      submitRole: [2], // 提交方向对应提交哪些审核角色
      submitTitle: ['提交至局长'], // 提交方向数组
      submitProcess: ['5'], // 提交方向对应的状态码数组
      backProcess: '4', // 驳回方向对应的状态码
      permissionIsShow: permissionIsShow,
    }));
  },
};//export default
</script>

<style scoped></style>
